﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Barrier : MonoBehaviour
{
    //public string ropetag = "Rope";
    public float rotatespeed = 30f;
    //private void OnTriggerEnter2D(Collider2D collision)
    //{
    //    if (collision.gameObject.tag == ropetag)
    //    {
    //        LevelOver.Lose();
    //    }
    //}
    private void Update()
    {
        transform.RotateAround(transform.parent.position, Vector3.forward, rotatespeed*Time.deltaTime);
    }
}
